package cn.smile.bean.entity.wechat;

import cn.smile.commons.domain.BaseDomain;
import cn.smile.commons.encrypt.EncryptTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "wechat_develop_config", autoResultMap = true)
public class WechatDevelopConfig extends BaseDomain {
    @Serial
    private static final long serialVersionUID = -5751191719958789968L;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 启用标记(true-启用, false-停用)
     */
    private Boolean enableFlag;

    /**
     * 公众号AppID
     */
    private String appId;

    /**
     * 公众号AppSecret
     */
    @TableField(value = "app_secret", typeHandler = EncryptTypeHandler.class)
    private String appSecret;
}
